package com.my.chapter2;

public class practice9 {
    public static void main(String[] args) {
        Boolean bo = true;// 自动将基本类型转换为包装器类型
        boolean bl = bo;// 将包装器类型反向转换为基本类型
        System.out.println("boolean="+bl);
        Character ch = 'c';
        char ca = ch;
        System.out.println("char="+ca);
        Byte by = 1;
        byte bt = by;
        System.out.println("byte="+bt);
        Short sh = 1;
        short so = sh;
        System.out.println("short="+so);
        Integer in = 6;
        int ir = in;
        System.out.println("int="+ir);
        Long lo = 1L;
        long ln = lo;
        System.out.println("long="+ln);
        Float fl = 1.0f;
        float fo = fl;
        System.out.println("float="+fo);
        Double du = 1.0d;
        double dl = du;
        System.out.println("double="+dl);
    }
}
